/*
 * MPITypes.h
 *
 *  Created on: 6.1.2013
 *      Author: Lukas Gemela
 */

#ifndef MPITYPES_H_
#define MPITYPES_H_
#include "mpi.h"

typedef struct _INDIVIDUUM {
    double p;
    double cg;
    double c;
    double k;
    double dt;
} INDIVIDUUM, *LINDIVIDUUM;

class MPITypes {
public:
	MPITypes();
	virtual ~MPITypes();

	MPI_Datatype getIndividuum() const {
		return individuum;
	}
private:
	void commitIndividuumDataType();
	MPI_Datatype individuum;
};

#endif /* MPITYPES_H_ */
